﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;

namespace StateTheater
{
    public partial class StateTheaterDataContext
    {
        partial void InsertPeople(People instance)
        {
            instance.LastUpdateTime = DateTime.Now;
            instance.LastUpdateUser = WindowsIdentity.GetCurrent().Name;
            this.ExecuteDynamicInsert(instance);
        }

        partial void UpdatePeople(People instance)
        {
            instance.LastUpdateTime = DateTime.Now;
            instance.LastUpdateUser = WindowsIdentity.GetCurrent().Name;
            this.ExecuteDynamicUpdate(instance);
        }
    }
}
